/**Do the validation needed before sending the from and return a truth value indicating if the form can be sent
*/
function validate() {
//Take out all newLines and change them by nothing
//This could be done by using javascript function's replacebut that was implemented only until Navigator 4.0 and so it is better to use more backward compatible functions like substr
<b>Use a pre-created config file for form values.</b>
</td>
</tr>
<tr>
<td bgcolor="#CCCCCC">
Normally, phpDocumentor uses the form values from this form to set up parsing. In version 1.2,
phpDocumentor allows you to "save" form values in configuration files so that you can replicate
common complicated documentation tasks with only one time. Just choose a config file below or create a
new one and refresh this page to choose it.<hr /><b>change config directory:</b><input size="20" type="text" name="altuserdir" value=""><?php if (!empty($_REQUEST['altuserdir'])) print '<br><i>changed to <b>"'.$_REQUEST['altuserdir'].'"</b></i>'; ?>
<b>Choose a config:</b> <select name="setting[useconfig]">
<option value="" <?php if (empty($_REQUEST['altuserdir'])) print 'selected'; ?>>don't use config file</option>
<?php
$dirs = array();
$dirs = phpDocumentor_ConfigFileList($configdir);
$path = '';
$sel = ' selected';
if (!empty($_REQUEST['altuserdir'])) $path = $configdir . PATH_DELIMITER;